export default {
    namespaced: true,
    state: {
        GueGAdd: [],
        ShuXAdd: [],
        taoAdd: [],
        // 添加分类
        addGoodsClass: [],
        // 商品数据
        AddCommodity: [],
        // 详情商品
        XqCommodity: [],
        // 添加商品
        AddTianjia: []
    },
    getters: {},
    mutations: {
        add(state, content) {
            state.GueGAdd.push(content)
            console.log(state.GueGAdd)
        },
        XAdd(state, content) {
            state.ShuXAdd.push(content)
            console.log(state.ShuXAdd)
        },
        tAdd(state, content) {
            state.taoAdd.push(content)
            console.log(state.taoAdd)
        },
        // 添加分类方法
        AddClass(state, content) {
            state.addGoodsClass.push(content)
            console.log(state.addGoodsClass)
        },
        tAddCommodity(state, content) {
            state.AddCommodity.push(content)
            console.log(state.AddCommodity)

        },
        AddXqCommodity(state, content) {
            state.XqCommodity.push(content)
            console.log(state.XqCommodity)

        },
        AddTianjiaClass(state, content) {
            state.AddTianjia.push(content)
            console.log(state.AddTianjia)
        }

    },
    actions: {},
    modules: {}
}
